import QtQuick 2.9
import QtQuick.Window 2.3

Window {
    visible: true
    width: 1024
    height: 768
    title: qsTr("Scratchpad")
    color: "#ffffff"

    Rectangle {
	    id: paleYellowBackground
	    anchors.fill: parent
	    color: "#cece9e"
    }

    Rectangle {
	    id: blackRectangleInTheCenter
	    width: 120
	    height: 120
	    anchors.centerIn: parent
	    color: "#000000"
    }

    Rectangle {
	    id: greenRectangleInTheCenter
	    width: 100
	    height: 100
	    anchors.centerIn: parent 
	    anchors.verticalCenterOffset: 20
	    color: "#008000"
    }

    Rectangle {
	    id: redRectangleTopLeftCorner
	    width: 100
	    height: 100
	    anchors {
		    top: parent.top
		    left: parent.left 
	    }
	    color: "#800000"
    }

    Rectangle {
	    id: blueRectangleTopLeftCorner
	    width: 100
	    height: 100
	    anchors {
		    top: redRectangleTopLeftCorner.bottom
		    left: parent.left
	    }
	    color: "#000080"
    }

    Rectangle {
	    id: purpleRectangleTopLeftCorner
	    width: 100
	    height: 100
	    anchors {
		    top: blueRectangleTopLeftCorner.bottom
		    left: parent.left 
		    leftMargin: 20
	    }
	    color: "#800080" 
    }

    Rectangle {
	    id: turquoiseRectangleBottomRightCorner
	    width: 100 
	    height: 100 
	    anchors {
		    bottom: parent.bottom 
		    right: parent.right 
		    margins: 20
	    }
	    color: "#008080"
    }


    Text {
        id: message
        anchors.centerIn: parent
        font.pixelSize: 44
        text: qsTr("Hello Qt Scratchpad!")
        color: "#008000"
    }
}
